﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;

namespace SharpMap.Presentation.Wpf
{
    public class MapCommandsHandler : FrameworkElement
    {
        public static MapCommandsHandler  GetCommandTarget(DependencyObject obj)
        {
            return (MapCommandsHandler )obj.GetValue(CommandTargetProperty);
        }

        public static void SetCommandTarget(DependencyObject obj, MapCommandsHandler  value)
        {
            obj.SetValue(CommandTargetProperty, value);
        }

        public static readonly DependencyProperty CommandTargetProperty =
            DependencyProperty.RegisterAttached("CommandTarget", typeof(MapCommandsHandler ), typeof(MapCommandsHandler)
            , new FrameworkPropertyMetadata(
                default(MapCommandsHandler)
                ,FrameworkPropertyMetadataOptions.Inherits));

    }
}
